-
Notifications
You must be signed in to change notification settings - Fork 377
feat(CC-batch-6): added batch 6 #11868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Preview: https://patternfly-react-pr-11868.surge.sh A11y report: https://patternfly-react-pr-11868-a11y.surge.sh Preview: https://pf-react-pr-11868.surge.sh A11y report: https://pf-react-pr-11868-a11y.surge.sh |
packages/code-connect/components/JumpLinks/JumplinkVertical.figma.tsx
Outdated
Show resolved
Hide resolved
packages/code-connect/components/JumpLinks/JumplinkHorizontal.figma.tsx
Outdated
Show resolved
Hide resolved
packages/code-connect/components/Label/LabelNonStatus.figma.tsx
Outdated
Show resolved
Hide resolved
| props: { | ||
| children: figma.children('*') | ||
| }, | ||
| example: (props) => <MastheadToggle>{props.children}</MastheadToggle> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we tell them that this is intended to be a button with an onClick handler for toggling open and closed the sidebar nav?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a good comment to have.
| }, | ||
| example: (props) => ( | ||
| // Documentation for Modal can be found at https://www.patternfly.org/components/modal | ||
| <Modal variant={props.size}>{props.children}</Modal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have the same issues as the AboutModal where the Modal will not appear unless it has isOpen={true} but really they probably want a button which will allow them to open/close the modal...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This applies for the AlertModal figma cc as well, it also needs the header/body/footer. children probably maps to the ModalBody content I would expect, and the rest could be stubbed out.
Modal would also benefit from having aria-labelledby and aria-describedby stubbed out with ids matching the respective ModalHeader and ModalBody.
| }, | ||
| example: (props) => ( | ||
| // Documentation for Modal can be found at https://www.patternfly.org/components/modal | ||
| <Modal variant={props.size}>{props.children}</Modal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have alert modals?
we have a title icon which lets them specify a status to add the correct icon to the header?
https://www.patternfly.org/components/modal#title-icon
packages/code-connect/components/JumpLinks/JumplinkHorizontal.figma.tsx
Outdated
Show resolved
Hide resolved
packages/code-connect/components/Label/LabelNonStatus.figma.tsx
Outdated
Show resolved
Hide resolved
| props: { | ||
| children: figma.children('*') | ||
| }, | ||
| example: (props) => <MastheadToggle>{props.children}</MastheadToggle> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a good comment to have.
| }, | ||
| example: (props) => ( | ||
| // Documentation for Modal can be found at https://www.patternfly.org/components/modal | ||
| <Modal variant={props.size}>{props.children}</Modal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This applies for the AlertModal figma cc as well, it also needs the header/body/footer. children probably maps to the ModalBody content I would expect, and the rest could be stubbed out.
Modal would also benefit from having aria-labelledby and aria-describedby stubbed out with ids matching the respective ModalHeader and ModalBody.
f5c92f6 to
a855dc5
Compare
1a3bec5 to
92b1f2d
Compare
00d0f3f to
6ba426e
Compare
nicolethoen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one issue I see in this last pass through
| addLabelControl={props.addLabelControl} | ||
| categoryName="Group label" | ||
| isClosable | ||
| isEditable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsClosable & isEditable are both features that i'd imagine are not present in most label groups and I would be suprised if they are enabled on all Figma designs. We might want to talk through the types of LabelGroups that designers can choose between and make sure each feature is implemented intentionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, I opened #1451 to track discussion topics moving forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I left isClosable and removed isEditable for the current integration. This approach aligns with figma's component presentation.
|
|
||
| children: figma.children('*') | ||
| }, | ||
| example: (props) => <JumpLinks label={props.label}>{props.children}</JumpLinks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to set aria-label here since label isn't always defined (by default it gets set to the label).
| children: figma.children('*') | ||
| }, | ||
| example: (props) => ( | ||
| <JumpLinks isVertical label={props.label}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same aria-label note as above.
| { | ||
| props: { | ||
| // string | ||
| labelGroupName: figma.string('Label group name'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused.
| example: (props) => ( | ||
| <Label isCompact={props.isCompact} isEditable={props.isEditable} color={props.color} variant={props.variant}> | ||
| {props.children} | ||
| {props.labelText} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
labelText and children seem to be redundant here, unless Figma has multiple content items?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kmcfaul updated! Icon is now returned by via status prop.
| socialMediaLoginContent={socialMediaLoginContent} | ||
| socialMediaLoginAriaLabel="Log in with social media" | ||
| signUpForAccountMessage={signUpForAccountMessage} | ||
| forgotCredentials={forgotCredentialsprops.isInvalid} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of undefined props here, but I think this may be okay enough for a LoginPage stub. wdyt @nicolethoen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed w/@kmcfaul, we think its configuration is acceptable.
| }, | ||
| example: (props) => { | ||
| /* eslint-disable */ | ||
| const [activeItem, setActiveItem] = useState(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We haven't been putting stubs in for state in other components so I'm unsure if we need it, but I think it's probably fine since activeItem is referenced in Nav block.
| aria-labelledby="<modal-id>" | ||
| aria-describedby="<modal-body>" | ||
| isOpen={true} | ||
| onClick={() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be onClose.
| aria-labelledby="<modal-id>" | ||
| aria-describedby="<modal-body>" | ||
| isOpen={true} | ||
| onClose={() => {}} // handles the close button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should call setIsOpen(!isOpen) if we're going to stub out the state.
4792e60 to
3fe910c
Compare
|
@kmcfaul I've addressed all of your comments/questions. It's ready for re-review. Side note: there are comments (top of file) noting the need for prop assignment for designers. |
| false: undefined | ||
| }) | ||
| }, | ||
| example: (props) => <Label onClose={props.isCloseable}>{props.labelText}</Label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add hasCounter
add count
add hasCloseButton
| // string | ||
| text: figma.string('Text'), | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not using text prop
| socialMediaLoginContent={socialMediaLoginContent} | ||
| socialMediaLoginAriaLabel="Log in with social media" | ||
| signUpForAccountMessage={signUpForAccountMessage} | ||
| forgotCredentials={forgotCredentialsprops.isInvalid} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed w/@kmcfaul, we think its configuration is acceptable.
8cfe9ca to
fb7ed13
Compare
fb7ed13 to
af3eefe
Compare

Relates to: #11624
Included components:
Component tracker
Figma preview
Resources: